package main

import (
	"os"
	"text/template"
)

func main() {
	name := "xujinjie"
	tpl, err := template.New("test").Parse("hello,{{.}}")
	if err != nil {
		panic(err)
	}

	err = tpl.Execute(os.Stdout, name)

	if err != nil {
		panic(err)
	}
}
